import request from '@/utils/request'

// 查询图片图标列表
export function listPic(query) {
  return request({
    url: '/publicize/pic/list',
    method: 'get',
    params: query
  })
}

// 查询图片图标详细
export function getPic(picId) {
  return request({
    url: '/publicize/pic/' + picId,
    method: 'get'
  })
}

// 新增图片图标
export function addPic(data) {
  return request({
    url: '/publicize/pic',
    method: 'post',
    data: data
  })
}

// 修改图片图标
export function updatePic(data) {
  return request({
    url: '/publicize/pic/edit',
    method: 'post',
    data: data
  })
}

// 删除图片图标
export function delPic(picId) {
  return request({
    url: '/publicize/pic/remove/' + picId,
    method: 'post'
  })
}
